[PR]

『新妻LOVELY×CATION』を応援しています!
水無瀬の部屋 > Programming > sample > tools > misc > sha512.h
最終更新日: 2000/02/04

   1: //*********************************************************
   2: // プロジェクト: TOOLS::SHA512 - Secure Hash Algorithm
   3: //   ファイル名: sha512.h
   4: //*********************************************************
   5: #ifndef SHA512_HEAD_INCLUDED
   6: #define SHA512_HEAD_INCLUDED
   7: 
   8: 
   9: //*********************************************************
  10: // コンパイル環境の指定
  11: //*********************************************************
  12: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // 冗長ガード
  13: #include <header/_tools.h>
  14: #ifndef PRIVATE_TOOLS_HEAD_INCLUDED // ガード名の検査
  15: #error "? PRIVATE_TOOLS_HEAD_INCLUDED"
  16: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  17: #endif // #ifndef PRIVATE_TOOLS_HEAD_INCLUDED
  18: 
  19: 
  20: //*********************************************************
  21: // マクロ定数 の 定義
  22: //*********************************************************
  23: #define SHA512_HASHSIZE     ( 64 )                  // BYTE sha[ SHA512_HASHSIZE ]
  24: #define SHA512_HASHTEXTSIZE ( 2 * SHA512_HASHSIZE ) // 
  25: 
  26: 
  27: //*********************************************************
  28: // 構造体 の 宣言
  29: //*********************************************************
  30: typedef struct SHA512_CTX_tag SHA512_CTX;
  31: 
  32: 
  33: //*********************************************************
  34: // 関数 の 宣言
  35: //*********************************************************
  36: #ifdef __cplusplus
  37: extern "C" {
  38: #endif
  39: 
  40: 
  41: // sha512.cpp
  42: SHA512_CTX *SHA512_CreateAlgorithm( void );
  43: bool        SHA512_DestroyAlgorithm( SHA512_CTX *context );
  44: bool        SHA512_InitData( SHA512_CTX *context );
  45: bool        SHA512_AddData( SHA512_CTX *context, const void *data, int length );
  46: bool        SHA512_GetHash( const SHA512_CTX *context, void *digest, int bufsize );
  47: bool        SHA512_GetHashText( const SHA512_CTX *context, char *buf, int bufsize );
  48: 
  49: 
  50: #ifdef __cplusplus
  51: } // extern "C"
  52: #endif
  53: 
  54: 
  55: #endif // #ifndef SHA512_HEAD_INCLUDED
  56: 
  57: 
  58: //** end **

参照: sha512.cpp, main.cpp


Google
ご意見・ご感想をお聞かせ下さい。匿名で送信できます。

 * 返信が必要な場合には postmaster@katsura-kotonoha.sakura.ne.jp へ直接メールしてください。

水無瀬の部屋 > sample > tools > misc > sha512.h

このページは cpp2web が出力しました。
水無瀬 優 postmaster@katsura-kotonoha.sakura.ne.jp
http://katsura-kotonoha.sakura.ne.jp/prog/code/tools/misc/sha512_h.shtml
『新妻LOVELY×CATION』を応援しています!